<?php

namespace app\admin\validate;

use think\Validate;

class EntityCards extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'card_number' => 'require|unique:EntityCards',
        'password' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
    ];

    public function __construct(array $rules = [], $message = [], $field = [])
    {
        $this->field = [
            'card_number' => __('card_number'),
            'password' => __('password'),
        ];
        parent::__construct($rules, $message, $field);
    }
    
}
